package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.entitiy.Book;
import com.itheima.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Author: lh
 * @Date: 2023/4/27 11:01
 * @Package:com.itheima.service.impl
 */

@Service
public class BookServiceImpl implements BookService {
    @Autowired  // 根据类型，自动装配
    private BookDao bookDao;


    @Override
    public void save() {
        System.out.println("book service save ...");

        bookDao.save();
    }


}
